package santeclair.connexion.service.parametrage.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import santeclair.connexion.dao.parametrage.ServiceDao;
import santeclair.connexion.domaine.parametrage.Service;
import santeclair.connexion.service.parametrage.ServiceService;

/**
 * @author pchaussalet
 */
@org.springframework.stereotype.Service
public class ServiceServiceImpl implements ServiceService {

    @Autowired
    private ServiceDao serviceDao;

    public void setServiceDao(ServiceDao serviceDao) {
        this.serviceDao = serviceDao;
    }

    /** {@inheritDoc} */
    public Service getService(Integer idService) {
        return serviceDao.getService(idService);
    }

    /** {@inheritDoc} */
    public List<Service> getListeServices() {
        return serviceDao.getListeServices();
    }

}
